package com.weijun.keepalive_daemon.service

import com.weijun.keepalive_daemon.DaemonKeepAlive
import com.weijun.keepalive_daemon.logE

/**
 * @author: weijun
 * date: 2023/7/6
 * description:
 */
internal class DaemonService : BaseService() {

    override fun onCreate() {
        super.onCreate()
        "DaemonService onCreate".logE()
        Thread {
            DaemonKeepAlive.daemonCallback?.onStart()
        }.start()
    }

    override fun onDestroy() {
        super.onDestroy()
        DaemonKeepAlive.daemonCallback?.onStop()
    }
}